package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Order;
import com.itheima.pojo.OrderSettingList;

import java.util.List;
import java.util.Map;

public interface OrderDao {
    public void add(Order order);
    public List<Order> findByCondition(Order order);
    public Map findById4Detail(Integer id);
    public Integer findOrderCountByDate(String date);
    public Integer findOrderCountAfterDate(String date);
    public Integer findVisitsCountByDate(String date);
    public Integer findVisitsCountAfterDate(String date);
    public List<Map> findHotSetmeal();

    /**
     * 按条件分页查询
     * @param queryString
     * @return
     */
    Page<OrderSettingList> selectByCondition(String queryString);

    /**
     * 添加预约列表
     * @param orderSettingList
     */
    void addOrderSettingList(OrderSettingList orderSettingList);

    /**
     * 根据Id删除
     * @param id
     */
    void delete(int id);
}
